<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript">
        var arr1 = ["e", "b", "d", "a", "f", "c"];
        var result = arr1.sort();
        console.log("arr1=" + JSON.stringify(arr1));
        console.log("result=" + JSON.stringify(result));
    </script>
</body>

</html>